<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<title>缺陷确认列表页面</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../lib/layui/css/layui.css" media="all">
<style>
  #layui-laypage-1 .layui-laypage-limits {
    display: none;
  }

  .col-list-cont {
    display: none;
  }

  .col-list-cont.show {
    display: block;
  }


  .list-cont2 .min-height {
    min-height: 600px;
  }
</style>
</head>
<body>
<!--消缺任务模块-->
<div style="margin-bottom: 5px;">

  <!--查询消缺任务与显示列表模块-->
  <div class="list-cont1 col-list-cont show">
    <form class="layui-form" style="padding-top:10px">
      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">任务编号</label>
          <div class="layui-input-inline">
            <input type="tel" name="solveTaskCode" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">任务名称</label>
          <div class="layui-input-inline">
            <input type="tel" name="solveTaskName" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">下发人</label>
          <div class="layui-input-inline">
            <input type="tel" name="issuedByName" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">任务状态</label>
          <div class="layui-input-inline">
            <select name="taskStatus" id="taskStatus" lay-filter="taskStatus">
              <option value=""></option>
            </select>
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">发现时间</label>
          <div class="layui-input-inline">
            <input type="text" name="startDate" class="layui-input" id="startDate" placeholder="yyyy-MM-dd">
          </div>
          <label class="layui-form-label">到</label>
          <div class="layui-input-inline">
            <input type="text" class="layui-input" name="endDate" id="endDate" placeholder="yyyy-MM-dd">
          </div>
        </div>
        <div class="layui-form-item layui-inline">
          <button class="layui-btn" lay-submit="" lay-filter="search">查询</button>
        </div>
      </div>
    </form>
    <!--制定消缺任务-->
    <div style="text-align:right;width:96.8%">
      <a>
        <button id="add" class="layui-btn layui-btn-radius">
          <i class="layui-icon">制定消缺任务&#xe654;</i>
        </button>
      </a>
    </div>

    <!--缺陷确认管理列表模块-->
    <table class="layui-table" lay-data="{width: 990,height:250, url:'/solver/solveList', page:true,limit:3, id:'test'}" lay-filter="demo">
      <thead>
      <tr>
        <th lay-data="{field:'solveTaskCode', width:100}">任务编号</th>
        <th lay-data="{field:'solveTaskName', width:100}">任务名称</th>
        <th lay-data="{field:'workDocTypeName', width:100}">工作单据</th>
        <th lay-data="{field:'issuedByName', width:100}">下发人</th>
        <th lay-data="{field:'issuedTime', width:180}">下发时间</th>
        <th lay-data="{field:'taskStatusName', width:100}">任务状态</th>
        <th lay-data="{field:'finishTime', width:180}">任务完成时间</th>
        <th lay-data="{field:'isCancelStr', width:150}">任务是否取消</th>
        <th lay-data="{fixed: 'right', width:300, align:'center', toolbar: '#barDemo'}">操作</th>
      </tr>
      </thead>
    </table>
    <script type="text/html" id="barDemo">
      <a class="layui-btn layui-btn-xs" lay-event="look">查看</a>
      <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="allocation">分配任务</a>
      <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>
      <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
  </div>

  <!--  制定消缺任务任务  -->
  <div class="list-cont2 col-list-cont">
    <h2>制定消缺任务任务>></h2>
    <form id="popupForm" class="layui-form layui-form-pane" method="post" style="padding-top:10px">
      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">任务编号</label>
          <div class="layui-input-inline">
            <input type="tel" name="solveTaskCode" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">任务名称</label>
          <div class="layui-input-inline">
            <input type="tel" name="solveTaskName" autocomplete="off" class="layui-input">
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">工作单据</label>
          <div class="layui-input-inline">
            <select name="workDocType" id="workDocType" lay-filter="bugType">
              <option value=""></option>
            </select>
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">任务责任人</label>
          <div class="layui-input-inline">
            <select name="taskManagerCode" id="taskManagerCode" lay-filter="bugType">
              <option value=""></option>
            </select>
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">下发人</label>
          <div class="layui-input-inline">
            <input type="tel" name="issuedByName" th:value="${session.user.userName}" autocomplete="off" class="layui-input" readonly>
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">下发日期</label>
          <div class="layui-input-inline">
            <input type="tel" name="issuedTime" autocomplete="off" class="layui-input"  readonly
                   th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd')}">
          </div>
        </div>
        <div  class="layui-inline">
          <label class="layui-form-label">任务描述</label>
          <div class="layui-input-inline">
            <textarea name="taskDesc" placeholder="请输入内容" class="layui-textarea"></textarea>
          </div>
        </div>
        <div  class="layui-inline">
          <label class="layui-form-label">备注</label>
          <div class="layui-input-inline">
            <textarea name="common" placeholder="请输入内容" class="layui-textarea"></textarea>
          </div>
        </div>
        <div  class="layui-inline">
          <label class="layui-form-label">消缺员</label>
          <div class="layui-input-inline">

            <textarea placeholder="请输入内容" class="layui-textarea"></textarea>

          </div>
          <button type="button" id="addSlover" class="layui-btn layui-btn-sm"><i class="layui-icon"></i></button>
        </div>

        <button type="button"  id="bugInfoAdd"  class="layui-btn layui-btn-sm">
          <i class="layui-icon">缺陷信息&#xe654;</i>
        </button>
        <label class="layui-form-label">缺陷列表</label>
        <div style="min-height: 180px">
          <table class="layui-table" lay-data="{width: 900,height:230, url:'/solver/bugInfoListStatus', page:true,limit:3, id:'bugList'}" lay-filter="demo">
            <thead>
            <tr>
              <th lay-data="{type:'checkbox',fixed: 'left', width:50}"></th>
              <th lay-data="{field:'lineCode', width:90}">线路编号</th>
              <th lay-data="{field:'poleCode', width:90}">杆塔编号</th>
              <th lay-data="{field:'bugLevelName', width:90}">缺陷等级</th>
              <th lay-data="{field:'bugTypeName', width:90}">缺陷类型</th>
              <th lay-data="{field:'bugDesc', width:90}">缺陷描述</th>
              <th lay-data="{field:'discovererName', width:90}">发现人员</th>
              <th lay-data="{field:'discoverTime', width:180}">发现时间</th>
              <th lay-data="{field:'discoverTime', width:100}">操作</th>
            </tr>
            </thead>
          </table>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button type="submit" class="layui-btn layui-btn-sm" lay-submit="" lay-filter="solverTaskAdd">提交</button>
            <button class="layui-btn layui-btn-sm" id="goback">返回</button>
          </div>
        </div>
      </div>
    </form>
  </div>

  <div class="list-cont3 col-list-cont" id="listCont3">
    <!--缺陷信息列表模块-->
    <table class="layui-table" lay-data="{width: 800,height:230, url:'/solver/bugInfoList', page:true,limit:3, id:'listCont3Status'}" lay-filter="demo">
      <thead>
      <tr>
        <th lay-data="{type:'checkbox',fixed: 'left', width:50}"></th>
        <th lay-data="{field:'lineCode', width:90}">线路编号</th>
        <th lay-data="{field:'poleCode', width:90}">杆塔编号</th>
        <th lay-data="{field:'bugLevelName', width:90}">缺陷等级</th>
        <th lay-data="{field:'bugTypeName', width:90}">缺陷类型</th>
        <th lay-data="{field:'bugDesc', width:90}">缺陷描述</th>
        <th lay-data="{field:'discovererName', width:90}">发现人员</th>
        <th lay-data="{field:'discoverTime', width:180}">发现时间</th>
      </tr>
      </thead>
    </table>
    <div class="layui-btn-group demoTable">
      <button class="layui-btn" data-type="getCheckData">确定</button>
    </div>
  </div>

</div>
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<script src="../js/jquery.min.js" charset="utf-8"></script>
<script src="../js/solveTask.js"></script>
</body>
</html>